<template>
  <div>
    账号：<input type="text" v-model="user.account"/> <br>
    密码：<input type="password"  v-model="user.password"/><br>
    <router-link :to="'/third/'+user.account+'/'+user.password">拼接登录</router-link>
    <router-link :to="{name:'third',params:{account:user.account,password:user.password}}">命名登录</router-link>
    <!-- 三级路由出口 -->
    <router-view></router-view>
  </div>
</template>
<script>
export default {
  data() {
    return {
      user:{
       account:"",
       password:"" 
      }
    }
  },
}
</script>